package com.zhiyi.coco.dao;

import com.zhiyi.coco.entity.SysUser;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface SysUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser getUserByName(@Param("username") String username);

    SysUser login(@Param("loginCode") String name);

    SysUser loginByCode(@Param("loginCode") String loginCode, @Param("loginPassword") String loginPassword);

    List<SysUser> getAllUsers();

    SysUser getInfoById(@Param("id") Integer id);

    Integer deleteInfoById(@Param("id") Integer id);

    SysUser selectByname(@Param("name") String name);

}